<template>
  <div id="app">
    <div class="welcome">
      <img :src="welcome.img" alt="">
      <h4 v-text="welcome.msg"></h4>
      <div>
        <el-button @click="startHacking">Start Go</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      welcome: {
        img: require('../assets/logo.png'),
        msg: 'welcome, this is vue2-cli-easy'
      }
    }
  },
  methods: {
    startHacking () {
      this.$notify({
        title: 'It works!',
        type: 'success',
        message: 'We\'ve laid the ground work for you. It\'s time for you to build something epic!',
        duration: 5000
      })
    }
  }
}
</script>

<style>
#app {
  width: 100%;
  height: 100%;
  padding-top: 100px;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  text-align: center;
}
.welcome{
  width: 300px;
  height: 200px;
  margin: 0 auto;
}
</style>
